﻿using System.Collections;

namespace IPScanner
{
    public class IPRangeItem
    {
        public int StartAddress { get; set; }

        public int EndAddress { get; set; }

        public string? IpPrefix { get; set; }

        public RangeItemStatus Status { get; set; } = RangeItemStatus.None;

        public bool Enable { get; set; }

        public override string ToString()
        {
            return $"{IpPrefix}{StartAddress} - {EndAddress}";
        }
    }

    public enum RangeItemStatus
    {
        None,
        Scaning,
        Finished,
        Stoped
    }
}
